const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, /* 快速访问token */
  name: state => state.user.userInfo.username, /* 快速访问用户名 */
  userId: state => state.user.userInfo.userId, /* 快速访问用户id */
  staffPhoto: state => state.user.userInfo.staffPhoto, /* 快速访问用户头像 */
  companyId: state => state.user.userInfo.companyId, /* 快速访问公司id */
  routes: state => state.permission.routes /* 快速访问路由菜单 */
}
export default getters
